<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 星云微讯科技有限公司
 * 后台-数据统计分析
 *  statistics.php
 *  Jacky Yu 2017-08-06
 */

class Statistics extends Admin_Controller
{
    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        if(isset($_GET['rc_order'])){
            $rc_order = boolval($_GET['rc_order']);

        }else{
            $rc_order = false;
        }

        $data = array();
        //搜索记录
        $this->load->model('searchlog_model');
        $top_search = $this->searchlog_model->get_top_search(0,0,$rc_order,20);

        $data['top_search'] = $top_search;

        $this->load->view('admin/statistics/index.php', $data);
    }
}